package com.ruoyi.order.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ruoyi.order.domain.MgOrderAssign;
import com.translate.mapper.IBaseMapper;

/**
 * 派稿Mapper接口
 * 
 * @author ruoyi
 * @date 2024-05-19
 */
public interface MgOrderAssignMapper extends IBaseMapper<MgOrderAssign>
{
	/**
	 * 选择订单及处理人编号
	 * @param orderId
	 * @param processed
	 * @return
	 */
	MgOrderAssign selectByOrderIdAndProcessd(
		   @Param("orderId") int orderId,
		   @Param("processed")int processed);
	
	
	List<MgOrderAssign> getOrderAssigns( @Param("orderId")long orderId);
	
	<P> int updateParam(P parameter);
	
	/**
     * 获取最大编号
     * @param orderId
     * @param processed
     * @return
     */ 
	Integer getOrderAssignsMaxIdForUpdate(@Param("orderId")long orderId, @Param("processed") long processed);
}
